<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	cert\interfaces
 * @category	OpenSSL, certificates
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\cert\interfaces;

use rpo\base\String;

/**
 * Define a interface de um certificado
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	cert\interfaces
 * @category	OpenSSL, certificates
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
interface IOpenSSLCertificate extends IOpenSSLResource, IOpenSSLExportable {
	/**
	 * Exporta o certificado como um pacote PKCS#12
	 * @param IOpenSSLKey $key
	 * @param String $password A senha do certificado
	 * @return string
	 */
	public function exportPKCS12( IOpenSSLKey $key , String $password = null );
}